package com.bgds.sys.module.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 报警信息
 * @author lj
 */
@Data
@TableName("bgds_alarm_log")
@ApiModel(value = "报警日志")
public class AlarmLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    @ApiModelProperty(value = "唯一标识（自增长）",dataType = "Long")
    private Long id;

    @ApiModelProperty(value = "报警类型")
    private String category;

    @ApiModelProperty(value = "报警时间")
    private Long alarmDate;

    @ApiModelProperty(value = "报警等级 0-正常，1-一级报警，2-二级报警，3-三级报警" )
    private Integer alarmLevel;

    @ApiModelProperty(value = "报警设备编码")
    private String deviceCode;

    @ApiModelProperty(value = "报警点")
    private Long attrId;

    @ApiModelProperty(value = "报警等级名称" )
    private String alarmLevelName;



    @ApiModelProperty(value = "状态(0:未处理,1:已处理)")
    private Integer status=0;

    @ApiModelProperty(value = "处理时间")
    private Long processingTime;

    @ApiModelProperty(value = "报警原因")
    private String reason;

    @ApiModelProperty(value = "报警次数")
    private Integer alarmCount;


    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

}